﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Views="clr-namespace:Tequila.AugmentedReality.Views">
    
    <Style TargetType="Views:CameraPoiView">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Views:CameraPoiView">
                    <ContentPresenter Content="{TemplateBinding Data}"
                                      ContentTemplate="{TemplateBinding PoiTemplate}">
                    </ContentPresenter>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="Views:CompassPoiView">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Views:CompassPoiView">
                    <Border>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="VisibilityInFov">
                                <VisualState x:Name="InFov">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Ellipse"
                                                                      Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <DiscreteColorKeyFrame Value="#F09609"
                                                                   KeyTime="0:0:0"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="NotInFov">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="Ellipse"
                                                                      Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                            <DiscreteColorKeyFrame Value="White"
                                                                   KeyTime="0:0:0"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>

                        <Ellipse Width="4"
                             Height="4"                             
                             x:Name="Ellipse">
                            <Ellipse.Fill>
                                <SolidColorBrush/>
                            </Ellipse.Fill>
                        </Ellipse>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
    